<?php
defined('BY_JYA') or exit('error');
$_RQ['op']=$_RQ['op']?$_RQ['op']:'list';
$return=array();
if($_RQ['op']=='list'){
	$params=array();
	$params['uid']=$_SESSION['uid'];
	if(!empty($_RQ['scenename_varchar'])){
		$params['scenename_varchar like']='%'.trim($_RQ['scenename_varchar']).'%';
		$return['params']['scenename_varchar']=$_RQ['scenename_varchar'];
	}
	$orderby=array();
	$pindex = max(1, intval($_RQ['page']));
	$psize = 10;
	$total='';
	$return['scene']=$this->get('scene',$params,array($pindex,$psize),$total);
	$totalpage=ceil($total/$psize);
	$totalpage=intval($totalpage);
	$return['totalpage'] =$totalpage;
	$return['params']['page'] =$pindex;
	exi($return);
}
if($_QR['op']=='up') {
	
}

?>